PkgObj=$(LosuSDK_Obj)/sdk/losuc

cc=cc

CIncFile=$(shell ls include/*.h) $(shell ls $(LosuSDK_Include)/*.h)

cWarning= -Wall
cStd= -std=c99
cOpt= -O2
cInclude= -I$(LosuSDK_Include) -Iinclude
cLink= -lm -L$(LosuSDK_Lib)  -l:liblosu.a 
cFlags= $(cWarning) $(cStd) $(cOpt) $(cInclude)




$(LosuSDK_Path)/losuc:\
	$(PkgObj)/losuc.o\
	$(PkgObj)/main.o\
	$(LosuSDK_Lib)/liblosu.a\

	$(cc) -o $@ $^ $(cLink)


$(PkgObj)/losuc.o: src/losuc.c $(CIncFile)
	$(cc) $(cFlags) -c $< -o $@

$(PkgObj)/main.o: src/main.c $(CIncFile)
	$(cc) $(cFlags) -c $< -o $@


